﻿using AutoMapper;
using GoodShop.ShopBrands;
using GoodShop.Shops;
using GoodShop.Users;

namespace GoodShop;

public class GoodShopApplicationAutoMapperProfile : Profile
{
    public GoodShopApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<CommodityInfo,ShopDTO>();
        CreateMap<CreateUpdateShopDTO, CommodityInfo>();

        CreateMap<CommoditySpecifica, ShopbrandDTO>();
        CreateMap<CreateUpdateShopBrandDTO, CommoditySpecifica>();

        CreateMap<UserModel, UserDTO>();
        CreateMap<CreateUpdateUsersDTO, UserModel>();
    }
}
